﻿<%@ Control Language="C#" %>
<script runat="server">
    private int Item_Lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        Links Ad = new Links();
        Item_Lang = Utils.GetQueryString("lang", 1);
        Item_Column = Utils.GetQueryString("Cid", 0);
        Repeater_List.DataSource = Ad.Links_List(Item_Lang, Item_Column);
        Repeater_List.DataBind();
    }

    private int item_column = 0;
    public int Item_Column
    {
        get { return item_column; }
        set { item_column = value; }
    }
</script>
<table class="datas">
    <thead>
        <tr>
            <td></td>
            <td><%=Lang.Show("Picture")%></td>
            <td><%=Lang.Show("Title")%></td>
            <td><%=Lang.Show("Link")%></td>
            <td><%=Lang.Show("Order")%></td>
            <td><%=Lang.Show("Status")%></td>
            <td><%=Lang.Show("Picture")%></td>
            <td class="Narrow"></td>
            <td class="Narrow"></td>
        </tr>
    </thead>
    <tbody>
        <asp:Repeater runat="server" ID="Repeater_List">
            <ItemTemplate>
                <tr id="TR<%#Eval("Item_Id") %>">
                    <td><input type="checkbox" class="checkbox" /></td>
                    <td><img class="link-img" src="../DataFile/LinksLogo/<%#Eval("Create_Time","{0:yyyyMM}") %>/<%#Eval("Create_Time","{0:ddHHmmss}") %>.gif" /></td>
                    <td><%#Eval("Item_Title")%></td>
                    <td><%#Eval("Item_Url")%></td>
                    <td><%#Eval("Orders")%></td>
                    <td><img src="../static/img/v<%#Eval("Item_IsShow")%>.png" /></td>
                    <td><code><%#Eval("Create_Time","{0:yyyy/MM/dd<br>HH-mm-ss}")%></code></td>
                    <td><a href="Links-Edit.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>"><%=Lang.Show("Edit") %></a></td>
                    <td><a href="javascript:Del(<%#Eval("Item_Id") %>,11)" class="del"><%=Lang.Show("Del") %></a></td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </tbody>
</table>
